<?php if (count($currencies) > 1) { ?>
<span style="float: left;margin-left: 30px;"><?php echo $text_currency; ?></span>
<div id="currency_menu">
<?php foreach ($currencies as $currency) { ?>
<?php if ($currency['code'] == $currency_current) { ?>
<div id="currency_down"><?php echo $currency['title']; ?><img src="image/flags/<?php echo $currency['image']; ?>" alt="<?php echo $currency['title']; ?>"/></div>
<dl id="currency_dl" class="top_menu">
<dd><span><img src="image/flags/<?php echo $currency['image']; ?>" alt="<?php echo $currency['title']; ?>"/><?php echo $currency['title']; ?></span></dd>
<?php } ?>
<?php } ?>
<?php foreach ($currencies as $currency) { ?>
<?php if ($currency['code'] != $currency_current) { ?>
<dd><a rel="nofollow" href="<?php echo $currency['href']; ?>"><img src="image/flags/<?php echo $currency['image']; ?>" alt="<?php echo $currency['title']; ?>"/>&nbsp;<?php echo $currency['title']; ?></a></dd>
<?php } ?>
<?php } ?>
</dl>
</div>
<?php } ?>
